package com.ruoyi.ai.controller;

import com.ruoyi.chatgpt.domain.GptTariffPackage;
import com.ruoyi.chatgpt.service.IGptTariffPackageService;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:TariffPackageController
 * @author: caoes
 * create:2023/6/30 9:16
 **/
@Api(tags = "权益相关接口")
@RestController
@RequestMapping("/tariff")
public class TariffPackageController {

    @Autowired
    private IGptTariffPackageService gptTariffPackageService;

    @ApiOperation(value = "获取资费套餐包列表")
    @GetMapping(value = "list")
    public AjaxResult queryTariffPackage() {
        List<GptTariffPackage> list = gptTariffPackageService.selectGptTariffPackageList(new GptTariffPackage());
        return AjaxResult.success(list);
    }
}
